package com.zk.iotgateway.service;


import com.zk.iotgateway.domain.IotJob;
import com.zk.iotgateway.util.JsonUtil;

import java.util.List;

public interface JobService {

    /**
     * 更新
     * @param job
     * @return
     */
    public boolean updateJob(IotJob job);

    /**
     * 删除
     * @param id
     * @return
     */
    public JsonUtil del(String id);

    /**
     * 启动任务
     * @param id
     * @return
     */
    public boolean startJob(String id);

    /**
     * 停止任务
     * @param id
     * @return
     */
    public boolean stopJob(String id);

    public List<IotJob> selectAll();

    public IotJob selectByPrimaryKey(String id);

    public int deleteByPrimaryKey(String id);

    public int insert(IotJob record);

    public int insertSelective(IotJob record);

    public int updateByPrimaryKeySelective(IotJob record);

    public int updateByPrimaryKey(IotJob record);

    public int deleteByPrimaryKey(IotJob o);

    public List<IotJob>  selectListByPage(IotJob o);



}
